//
//  Dissmiss.m
//  17-HomeWork(通讯录)
//
//  Created by ParkourH on 16/8/6.
//  Copyright © 2016年 ParkourH. All rights reserved.
//

#import "Dissmiss.h"

@implementation Dissmiss

- (void)perform {

    
    [self.sourceViewController dismissViewControllerAnimated:YES completion:^{
        
        
    }];
}

- (instancetype)initWithIdentifier:(NSString *)identifier source:(UIViewController *)source destination:(UIViewController *)destination {

    self = [super initWithIdentifier:identifier source:source destination:destination];
    if (self) {
        
        if (source.editing == YES) {
            
            return self;
        }
        [source.navigationController pushViewController:destination animated:YES];
    }
    return self;
}



@end
